package com.ruoyi.seckill.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "ruoyi-order") // 服务名必须和注册中心一致
public interface OrderFeignService {

    @GetMapping("/inner/order/create")
    String createOrder(@RequestParam("userId") String userId);
}
